import request from '@/utils/request'

// 预订订单列表
export function apiPreOrderLists(params: any) {
    return request.get({ url: '/orders.pre_order/lists', params })
}

// 添加预订订单
export function apiPreOrderAdd(params: any) {
    return request.post({ url: '/orders.pre_order/add', params })
}

// 编辑预订订单
export function apiPreOrderEdit(params: any) {
    return request.post({ url: '/orders.pre_order/edit', params })
}

// 删除预订订单
export function apiPreOrderDelete(params: any) {
    return request.post({ url: '/orders.pre_order/delete', params })
}

// 预订订单详情
export function apiPreOrderDetail(params: any) {
    return request.get({ url: '/orders.pre_order/detail', params })
}
// 订单统计
export function apiPreOrderStat(params: any) {
    return request.get({ url: '/orders.pre_order/stat', params })
}
// 分配订单确认
export function apiPreOrderConfirmAllocation(params: any) {
    return request.get({ url: '/orders.booth_orders/confirmAllocation', params })
}
// 分配展位
export function apiPreOrderDistribution(params: any) {
    return request.post({ url: '/booth_manager.share_booth_stat/distribution', params })
}
// 删除已分配展位
export function apiPreOrderDistributionDelete(params: any) {
    return request.post({ url: '/booth_manager.share_booth_stat/delete', params })
}
// 拖拽已分配展位
export function apiPreOrderDistributionEdit(params: any) {
    return request.post({ url: '/booth_manager.share_booth_stat/edit', params })
}




// 向已有的组别中追加展位
export function apiPreOrderDistributionAppendBooth(params: any) {
    return request.post({ url: '/booth_manager.share_booth_stat/appendBooth', params })
}
// 修改组别的样式
export function apiPreOrderDistributionEditBoothInfo(params: any) {
    return request.post({ url: '/booth_manager.share_booth_stat/editBoothInfo', params })
}
// 查看主营和备选
export function getCategoryListApi(params: any) {
    return request.post({ url: '/orders.pre_order/getCategoryList ', params })
}

// 添加自定义
export function addCustomizeOrdersApi(params: any) {
    return request.post({ url: '/orders.pre_order/addCustomizeOrders ', params })
}
// 编辑自定义
export function editCustomizeOrdersApi(params: any) {
    return request.post({ url: '/orders.pre_order/editCustomizeOrders ', params })
}
// 删除自定义
export function delCustomizeOrdersApi(params: any) {
    return request.post({ url: '/orders.pre_order/deleteCustomizeOrders ', params })
}


// 分配
export function getReservationRecordListApi(params: any) {
    return request.get({ url: '/orders.pre_order/getReservationRecordList', params })
}

// 删除一个组别
export function deleteGroupApi(params: any) {
    return request.post({ url: '/booth_manager.share_booth_Stat/deleteGroup', params })
}



